home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / DevTools / ClassEditor.0.4 / Source / MiscSources.subproj / Text_MiscExtensions.h < prev    next >
Encoding:
Text File  |  1995-06-07  |  963 b   |  50 lines

  1. /* Text_MiscExtensions.h                 
  2.  *
  3.  * This category makes dealing with the Text object easier. 
  4.  * See the docu for details.
  5.  *
  6.  * Usage: ....
  7.  *
  8.  * Written by:         Thomas Engel
  9.  * Created:            30.01.1995 (Copyleft)
  10.  * Last modified:     30.01.1995
  11.  */
  12.  
  13. #import <appkit/appkit.h>
  14.  
  15. @interface Text(MoreMiscExtensions)
  16.  
  17.  
  18. // Working with selections and pasteboards
  19.  
  20. - copyTo:aPasteboard;
  21. - cutTo:aPasteboard;
  22. - pasteFrom:aPasteboard;
  23.  
  24. - (BOOL)hasEmptySelection;
  25. - (BOOL)hasInvalidSelection;
  26. - setSelToStart;
  27. - setSelToEnd;
  28. - selectTrueLine:(int)line;
  29.  
  30. - findPerviousWord;
  31. - findNextWord;
  32. - (BOOL)findText:(const char *)string ignoreCase:(BOOL)ignoreCaseflag backwards:(BOOL)backwardsflag wrap:(BOOL)wrapflag font:aSharedFont;
  33.  
  34. - substringFromLine:(int)line;
  35.  
  36. // Working with Text runs and their information
  37.  
  38. - (NXRun *)textRunForPosition:(int)position;
  39.  
  40. - fontsInsideSelection;
  41. - fontAtPosition:(int)position;
  42.  
  43. @end
  44.  
  45. /*
  46.  * History: 30.01.95 Buh
  47.  *            
  48.  *
  49.  * Bugs: - ...
  50.  */